import {
  queryInfoList, 
} from '@/services/sensitiveData/infoStatistics';

export default {
  namespace: 'infoStatistics',
  state: {
    // 列表数据
    dataqueryInfoList: {
      dataList: [],
    },    
  },

  effects: {
    *queryInfoList({ payload }, { call, put }) {
      const response = yield call(queryInfoList, payload);
      yield put({
        type: 'save',
        payload: response,
      });
    },
},

  reducers: {
    save(state, action) {
      return {
        ...state,
        dataqueryInfoList: action.payload.data||{},
      };
    },
  },
};
